/**
 * @Author：ming
 * @Date：2023/9/26 5:47 PM
 * @Filename：Lc57
 */

import java.util.Arrays;
import java.util.Comparator;

/**
 * @author ming
 */
public class Lc57 {
    public int[][] insert(int[][] intervals, int[] newInterval) {

        Arrays.sort(intervals, new Comparator<int[]>() {
            @Override
            public int compare(int[] o1, int[] o2) {
                return o1[0]-o2[0];
            }
        });

        for (int i = 0; i < intervals.length; i++) {
            int start = intervals[i][0];
            int end = intervals[i][0];
        }

        return null;

    }
}
